Skip to content

Create script to help developers avoid exceeding disk quota on LC#1613

Open
chapman39 wants to merge 4 commits into
task/chapman39/update-bltfrom
task/chapman39/setup-jacamar-ci-script
Open

Create script to help developers avoid exceeding disk quota on LC#1613
chapman39 wants to merge 4 commits into
task/chapman39/update-bltfrom
task/chapman39/setup-jacamar-ci-script

Conversation

@chapman39
Copy link
Copy Markdown
Collaborator

@chapman39 chapman39 commented Jun 4, 2026

Now that we are using Hubcast, CI will run as the developer who pushes the commit, merges the branch, etc. Because of this, each Smith developer is at risk of exceeding disk quota. This script helps prevent that by doing the following two things

  1. setup symlink pointing the jacamar ci directory out of the HOME directory and to the workspace
  2. create a cron job that will periodically (daily at midnight) remove the contents of the jacamar ci

I'm sort of worried that people will create conflicting cron jobs across multiple machine nodes so I created some checks to avoid it.

@chapman39 chapman39 self-assigned this Jun 4, 2026
@chapman39 chapman39 marked this pull request as ready for review June 4, 2026 23:20
@chapman39
Copy link
Copy Markdown
Collaborator Author

also i should mention i am aware of mpifileutils allowing you to remove directories in parallel. however, i could not for the life of me get it to work for this use-case, because of the sheer amount of files needed to be removed, drm would often hang and/ or fail. i think its some sort of memory limitation. https://myconfluence.llnl.gov/spaces/RAM/pages/211290486/File+info+-+aka+where+are+all+my+files+and+how+do+i+clean+up

i've been using regular rm for weeks and have had no issues.

Comment thread scripts/setup_jacamar_ci.sh Outdated
0,20,40 * * * * crontab ${CRON_SCRIPT_PATH}

# Remove contents of Jacamar CI
0 0 * * * srun -N1 rm -rf ${WORKSPACE_CI_DIR}/*
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause builds to fail if they are running at night. I recommend only deleting things that are of a certain age.. like a day or two old.

Comment thread scripts/setup_jacamar_ci.sh Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants